<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ page import="mybatis.pojo.Grade" %>
<%@ page import="mybatis.pojo.Subject" %>
<%@ page import="mybatis.services.GradeServerices" %>
<%@ page import="mybatis.services.SubjectServerices" %>
<%@ page import="java.util.List" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>超市账单管理系统</title>
    <link rel="stylesheet" href="css/public.css"/>
    <link rel="stylesheet" href="css/style.css"/>
</head>
<body>
<%

%>

<!--主体内容-->
<section class="publicMian ">

    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>课程查询</span>
        </div>

        <!--供应商操作表格-->
        <table class="providerTable" cellpadding="0" cellspacing="0">
            <tr class="firstTr">
                <th width="10%">编号</th>
                <th width="20%">课程名</th>
                <th width="10%">课时</th>
                <th width="10%">年级</th>

            </tr>
            <%
                request.setCharacterEncoding("utf-8");
                String subName = request.getParameter("subName");
                List<Subject> search = SubjectServerices.ME.search(subName);
                for (Subject s : search) {


            %>
            <tr>
                <td><%=s.getId()%></td>
                <td><%=s.getSubjectname()%></td>
                <td><%=s.getClasshour()%></td>
                <td><%=s.getGradeid()%></td>


                <%--<td>--%>
                    <%--<a href="providerView.html"><img src="img/read.png" alt="查看" title="查看"/></a>--%>
                    <%--<a href="subjectUpdate.jsp?suBid=<%=s.getId()%>"><img src="img/xiugai.png" alt="修改" title="修改"/></a>--%>
                    <%--<a href="subjectDelete.jsp?id=<%=s.getId()%> "class="removeProvider" onclick="return confirm('确认是否删除')"><img src="img/schu.png" alt="删除" title="删除"/></a>--%>
                <%--</td>--%>
            </tr>
            <%}%>
        </table>

    </div>
</section>



</body>
</html>
